﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace HalconDotNet
{
	/// <summary>
	/// Summary description for HalconWindowLayoutDialog.
	/// </summary>
	// Token: 0x0200000C RID: 12
	internal partial class HalconWindowLayoutDialog : Form
	{
		// Token: 0x0600004E RID: 78 RVA: 0x00003042 File Offset: 0x00001242
		public HalconWindowLayoutDialog()
		{
			this.InitializeComponent();
		}

		// Token: 0x0600004F RID: 79 RVA: 0x00003060 File Offset: 0x00001260
		public HalconWindowLayoutDialog(Size referenceSize) : this()
		{
			this.labelReference.Text = string.Concat(new object[]
			{
				this.labelReference.Text,
				" ",
				referenceSize.Width,
				" x ",
				referenceSize.Height
			});
		}

		// Token: 0x06000052 RID: 82 RVA: 0x000034F9 File Offset: 0x000016F9
		private void buttonOK_Click(object sender, EventArgs e)
		{
			if (this.radioSizeHalf.Checked)
			{
				this.resultPercent = 50;
			}
			else if (this.radioSizeQuarter.Checked)
			{
				this.resultPercent = 25;
			}
			this.resultCancel = false;
			base.Close();
		}

		// Token: 0x06000053 RID: 83 RVA: 0x00003534 File Offset: 0x00001734
		private void buttonCancel_Click(object sender, EventArgs e)
		{
			base.Close();
		}

		// Token: 0x04000041 RID: 65
		public bool resultCancel = true;

		// Token: 0x04000042 RID: 66
		public int resultPercent = 100;
	}
}
